Remember what we want. You don’t need to do these in order. Work on what you like first. Hints:
- Let’s first get the plot looking reasonable for one year (1962) and one continent (Europe). Once it does, we can expand to more continents and years. DONE
- Colors are tricky. Try looking for help about the gapminder package. Does it have some built-in colors that might be useful? DONE
- Too much opaque overlapping for the datapoints is ugly. Our target has the points as somewhat transparent. How do we achieve that? DONE
- Our target graphic has no legend, which I think is right. How do we turn off the legend? DONE
- The target uses data from 3 (?) continents. Filter our data for that case. DONE
- How can we create three separate panes? DONE
- Note that the ordering of the panes is not alphabetical. What sort of variable is continent and how can we change its ordering? R4DS is your friend.
- The default breaks in the x-axis are nice in the target animation. How can we make that happen?
- Before animating, it can be useful to look at the data for all years and, say, three countries. How do we set that up?
- Animation is not that hard. Background reading here. We need a transition of some kind . . . Which of our variables measures the change in time?
- How can we get the year to show up, and change, in the title?
- Don’t forget to add some comments to your code!
- Do this only if you get everything else done. Note how the text in the target plot is bigger. I think it looks better. Recall chapter 8 from Healy and the use of theme().
